<?php if(Yii::app()->user->hasFlash('loginMessage')) { ?>
	<div class="success">
		<?php echo Yii::app()->user->getFlash('loginMessage'); ?>
	</div>
<?php } ?>

<p><?php echo UserModule::t('Please fill out the following form with your login credentials:'); ?></p>

<div class="form">
	<?php echo CHtml::beginForm(); ?>

	<p class="note"><?php echo UserModule::t('Fields with <span class="required">*</span> are required.'); ?></p>
	
	<?php echo CHtml::errorSummary($model); ?>
	
	<div class="row">
		<?php echo CHtml::activeTextField($model, 'email') ?>
		<?php echo CHtml::activeLabelEx($model, 'email'); ?>
	</div>
	
	<div class="row">
		<?php echo CHtml::activePasswordField($model, 'password') ?>
		<?php echo CHtml::activeLabelEx($model, 'password'); ?>
	</div>
	
	<div class="row rememberMe">
		<?php echo CHtml::activeCheckBox($model, 'rememberMe'); ?>
		<?php echo CHtml::activeLabelEx($model, 'rememberMe'); ?>
	</div>
	
	<div class="row">
		<p class="hint">
			<?php echo CHtml::link(UserModule::t('Register'),       Yii::app()->getModule('user')->urls['registration']); ?> |
			<?php echo CHtml::link(UserModule::t('Lost Password?'), Yii::app()->getModule('user')->urls['recovery']); ?>
		</p>
	</div>
	
	<div class="row submit">
		<?php echo CHtml::submitButton(UserModule::t('Login')); ?>
	</div>
	
	<?php echo CHtml::endForm(); ?>
</div>
